package com.hatricks.is.base.stream.progressinputstream;


public class ProgressPublisher {

    public static void publishByteCountEvent(final ProgressListener listener, final ProgressEventType eventType, final long bytes) {
        if (listener == ProgressListener.NOOP || listener == null || bytes <= 0) {
            return;
        }
        listener.progressChanged(new ProgressEvent(eventType, bytes));
    }
}
